Initial draft for files and plots, working