Order imports properly. Fix path when running script directly from repo rather than as an installed package. Refactor command line handling.
Order imports properly. Fix path when running script directly from repo rather than as an installed package. Refactor command line handling.