added read.settings to main to work with a config file, still trying to get application.rc running