Add a bunch of docs
Fix deprecation warnings