First commit

Minimal working code.