added some comments into the code