Moved the control to SendFileCommand and manipulation is done directly on gcode;
This way changes can be seen on screen.

Note - this is still not working too well and arduino gets stuck after a small number of changes.