Add explanation comments on code