cleaning debug code and adding description