Comments on all code snippets would be great, some sections are missing comments on what the code does.