Fixed typos in function documentation and errors

Function descriptions/documentation and corresponding errors were not always referencing the correct function. This is now fixed so that it is clearer to the user.