Added date-array parsing.
Fixed some linting errors.