Updated Code

Have Updated the code and entered comments