Added documentation for 3 functions