Improvements on the documentation of the functions