configuration file logic
added config file for saving directory.