Adding comments explaining what the code does