added an AddEvent();

Need to:
1) refactor code
2) add jstl & some cosmetics for web UI (actually, web-UI should be
fully reworked)
3) rework comments
4) add exception logging