Fixed typos and corrected comments