misc docstrings
add experimental find-loops command. convert some uses of vector to deque.