added config file and made some minor changes