Revert "Cleanup and document config module"

This reverts commit 7f737372c083eb2f52b34e0227215eea683c9cf8.