wrote documentation for functions and updated namespace file