Initial Commit

First commit of prototype code. Refactoring to come.