Adding comments.

Added comments in the code for the users to better understand the process.