Added insert unsaved message into history and the ability to disable mes...

Added insert unsaved message into history and the ability to disable message history. I think this will resolve issue #40