Added comments to collision code.