Saving program configuration to config.dat file added