refactoring 2

exception in logic will now return a warning log message. Assertion used
in undo and redo to assert that there is no weird strings in the undo
redo stack. Strings in storage are now all in constant file.