fixed several typos and syntax errors that I missed.