Added a single method for creating the main documentation for each object.

Better handling of nested modules.
Indentation process changed.
Changes to Makefile for compilation with g++ on OS X