added some comments helpful to debugging