Fixed some typos in function definitions.