cleaned up the formatting and some typos