documentation of functions added