Added legend to plot3.
Fixed typo in filename to read.