Some documentation of functions added