Dev

Cleaned up, ready for pull to master.

This fixes all display issues I've noted so far--

- window scrolls
- ls doesn't overflow the display
- page up, page down, home and end keys can scroll the window