refactor to add CLI
Replaced travis with github actions. fixes #214
more relaxed version parsing #190This also adds tests for it.