Refactoring plugins: made demos.py stand alone
Fix event search bug