Fixed up error checking and move printer file code. Fixed a memory leak.