Second Commit

Appropriate Comments added for better readability.
Debugging messages removed.