dwd: improve error handling
fix pack bug
small cleanup
improve exception handling
ical: return dict; cleanup code
update header