Adding application settings code

Code to read from file and to generate a new settings file is added.