minor cleanup.
perspective.
added tests dir.
handling keypresses, added keytest.