fix default zindex, add configObj as optional parameter to constructor,
fix syntax error in line 60