added functionality for creating and modifying config file