s/forward range/input range/ plus minor fixes