Small refactorings of monitor.py.
Added comments to settings.py.