Added ball.hpp
Updated the documentation of the functions.

Added some "LOG_ERR" outputs to identify that's an error, updated
documentation of the functions.