added setup.py and removed some lines in mainscript