fixed parsing of start and end date
improved intersection detection
improved intersection detection
add --reverse
fixed reverse postions