added config file and cleaned up the class inits