1.replace params with j argument for getData method 2. optimize plotGate for GatingHiearchy