Added comments, pretty_print enhanced.

Added documentation comments through all the module: the module itself,
the functions and some programmer-friendly comments.