working deploy from scratch
some docstrings
a few fixes