minor code cleaning
added some comments&help