Some minor bugfixes and new class DateTimeUtils