added type as an argument to getEvents
refactoring of the model into parser, filters and model classes
added simple exception handling in the view