New function documentation and minor changes to existing documentation