updated STATS

added option to specify RUM or STAR (default).
properly handles STAR stats.
properly handles new TRIM module.