Separated out lines where two bits of code together and fixed some typos