Added ability to read from config file. Cleaned up some print statements scattered throughout code