Add tests for the configuration loading.
Add some documentation.