Updated documentation of functions