minor bug fixing; tuning; added saving frames to plotdata
cmt plotdata