adding sphinx documentation

Also, refactored to make cusips and dpatterns part of sub-modules