Added documentation for few functions.