Implementing @emits tag

Added regex detector for @emits syntax, added some documentation and an
example.