1. add tests, 2. move basic install command back into root index.js, 3. make it more flexible, 4. fix version checking