add documentation
fix usage of floor