correct export, toEvent added

* all functions explicitely exported
* toEvent function added once can use this function as a helper
for automatic message decoding
rename Class to STM