revised comments and corrected typos