Correct typos and improve syntax for clarity

I hope the improvements are useful.