Added  functions to event model.
Added stuff to event_details template.