added proper algorithm descriptions, added examples to doctests and
added target phrase position to track reordering