Added more comments and renamed date parser method.