created double-buffered display
refactored some of the code
cleaned up some code