work update on files - read mode, single equation save mode, needs debug