Added .idea to gitignore
Stuff properly split into a package
Added setup.py
Improved __main__ script