Optimized for pyinstall

Added .spec file and made nesseary changes to work with pyinstall