Updated functions and documentation
Updated documentation