Added documentation for four functions.