Import initial codebase

Fixes #1