Cleanup
Auto documentation update. Major refactoring. Logging.