add some comments. comment out unused function.