Added comments everywhere.
Generated documentation.