refactored for easier pyinstaller use
added pyinstaller submodule