refactor package structure, add license and setup.py to make package installable using pip