Adding comments to code

Adding comments to code for understanding best.