fixed some typos and corrected defs