Updated all problem files to conform to the new problem file being a function format. Also put some of the plotting scripts in tools/.