Completed plot4.r, made final changes to all the scripts.