Major code cleanup

Removed all the event and flushing stuff as we don't need it.

Stumbled over two statements that we do not handle StoreG and LoadG.