Loads of changes - mainly saving files once viewed for later analysis
in analyse boxes