fixed various typos and errors