change class to module

Dumped event driven style to focus on building cli tools.
In the future will have independent event driven lib.