fix some typos and formatting errors