Fixed bug with variable and function name crashing

Fixes #87
Broadcasting events now as well

Fixes #85