Fix spelling mistakes, add function descriptions, small function name changes