Added a test drawing to drawFunc and finished file out code in
IOFunc.cpp