fix --length option giving 1 more than intended and fix case length == 1
fix --length option giving 1 more than intended and fix case length == 1

glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal