optimized code
testing new writeConfigFile function
optimized code
optimize code
resolved bugs