Added some comments

Some comments for better understanding of the code.