Versioning

Closes #634.