updated top comment
common settings file reader function
removed main from bottom
improved string formatting