updated documentation for functions 4-11
Merged with upstream