Commented code

Commented code so group can understand what was done