Added settings class and a settings.cfg file. Un-hardcoded some things.
Tidied a tad.