Updated UI
Fixed a few bugs inside getTermFromFile(). insertTeaches() still throws an exception