Added some comments

for a better understandable code