Errorhandling optimized, minor bugfixes, Datestuff