added a speed up for plotting occam model and added some flexibility to plotting