Better documentation

Documented the newly implemented functions.