Added documentation of input and output parameters.