add files for plot4 and fixed a few things in the other files