refactor of bracket drawing, more forgiving of lists/tuples, better tests
better docs