Put in the ability to force immediate writes so that we can be sure to turn off the heaters and motors when exiting the program. Fixed a bug in the injection of m105 during printing so that it does not go in more than once if present.