Shift to use of setuptools to distribute (added main function, added package, added setup.py and entry_point)