Updated code to be contained in a class with methods.
Updated display to use curses. Current implementation is very basic.