Fixed version number being parsed as floats instead of ints. Added tests to cover these scenarios. Fixes #20