Refactor package for source distribution (#12)

This is the fix for issue #12.