Added documentation to functions and namespace