Added check for invalid dates in init(). Added isValid and isDate methods to dateutil.