New build system

Closes #11