Added Scala EventManager. Not yet tested.
Fixing Scala EventManager code