rmempty added. InitParams mostly complete