Piddly little commit adding functionality to the TextElement (handler.py)

Also includes a change in main.py that I should have committed last time, whoops?