Improve code documentation and cleanup

Added docstrings to more classes and methods in the `settings` and `gui` modules. Moved the Container class to the `settings` module.