moved loadConfig() back to MainClass
add return statements