adding comments on the code. Also removing the debug code