Adds docs
Docs and minor API fixes