saving and loading fits from file (for cheating in the live demo)
try to write theta to file (doesn't work), use outname to save/load fits, don't write if outdir is empty