Completed plot3 and plot4, also added commenents for all the script files