Added documentation, fixed collision response