change SCRATCH to scratch
Modified fgmax_tools to add new class for both input and output