Fix massively borked packaged version by refactoring and switching everything to the correct relative imports. Fixes #28