Commented

Commented the code to make it more readable