fixed command-line script
moved bin script and added it to setup.py