some code comments + credits added