Split core functionality and main function so that setup.py can import __version__
Merge pull request #15 from rubik/master

Split core functionality and main function so that `setup.py` can import `__version__`

Amazing, thanks!