Corrected typos and cleaned up comments