added exportation to icalendar and some input-checking / error-messages to topological sort