Fix #24, move state get/set to getstate/setstate.
Add arrow characters as commands
Merge pull request #25 from ianb/master

Fix #24, getstate/setstate; add arrow commands