Removed trailing whitespaces and corrected typos.