code cleanup and new reset option to apply init assignment rules to global params