fixed wrong function name "check_date_range"; renamed check_date and check_daterange function

issue #80