fixed sorting problem, added setup.py