Basic input framework.
Merge pull request #1 from niode/master

Basic input framework.