Add missing main()

Previously, "console_scripts" in "setup.py" was pointing to a
non-existent main().
Leave one of the exits due to entry point usage
Merge pull request #6 from myint/setup

Add missing main()