Cleanup and document config module