added the functionaly of pickling results before doing plots
(#355)