fixes

implemented collections witt vector so I could use binary seach and
lower bound

made a fucntion to consume remaining command line after an error

added range for to output collections