Implement a dist target

Closes #8