saveToFile working

some cleanup - all is well