- added some coments to the code