Added the ability to find the direction of text. Minimal testing was done.