complete refactoring of the configuration file into specific files for clearity. Also cleaned up comments.