removed some typos and trailing comments