added main functionality, configuration file update