minor tweakage, added comments