add code comments. remove useless test