Cleanup of the API and the configuration file. Extended the API documentation.