Changed range of state.vs to prog_val
Comment explaining the intention of DirStreamCell_def.