Got it working again. Amost verified. Runtime stats to be added.Debug stmnts to be removed