Use ints for versions

Resolves #36.