added missing documentation of functions