reformat code and allow for custom query parameters (like the new default units=metric)
rename entry point
bump dependencies
fix tests (removed opts.primary as its not very helpful atm)