Update Rest class

* Add new functions.
* Fix notes upload.