add argument for in/out
accommodate change in pickledFileName
accommodate change in pickledFileName
fix plots