added event based system
fixed new command line options for events
stripped some unused imports
added maximization