Clean up the section on loops
Clean up and add examples to the section on functions
Clean up and add examples to the section on docstrings