added comments and cleaned up a bit. the settings.ini is assumed to be in the base directory the project is started from, e.g. in the same directory as the executable jar