tidied up some typos, changed some formatting