I wrapped long lines in the code blocks. Should be easier to follow now.