added some comments & output messages