made event and eventname case insensitive
refactoring
plugin adds eventnames specified in phpdoc of classes also