Added a setup.py. Created package directory structure. Fixed some bugs.