commenting of the code

Rayyaan-I commented the code to make it easier for other people the
understand. I'm not completely finished