Add versioning to API

Resolves #3