added basic event hooks and NodeFactory
added basic event hooks and NodeFactory
added tests for event hooks
wtf