inlined unsaved_msg()
Created io.h
moved function to io.c