made .ini file easier to use and made simple changes to make code cleaner.