1. Add doc dir for automatic generation of documentation.
2. Improvements in the documentation of functions and modules.