Added setup and resize event callbacks. Added user input cleaning and eval to ensure expected behavior. Added second, unique namespace for discrete event types.