fixed some typos and syntax errors after proofreading