add setup.py, fix a small bug
commit version 0.2.4