New syntax for parameters
Moved graphs to separated module for reuse
Moved graphs in other module
Catched exceptions in do_events