added plotlive feature

set plotlive in parameters to 0 or 1 to toggle it on and off.