Added a textbox class and updated Main to use it

Also added a file I got from Stackoverflow.com to read the terminal size
so textboxes can match the terminal size.

Probably a few minor changes as well.