improved logging
added RGBA, StateFlags and EnterEvent + fixed up EnumSet bitflags