Added emitEvent methods

Added emitEvent methods, used to emit events without arguments.
Fixed indentation

Changed tabs to spaces
Merge pull request #80 from IlyaGulya/feature

Added emitEvent methods