some comments improved. debugging.