Added stuff for the text tool and deleted duplications

Signed-off-by: Tabor Kvasnicka <kamakwazee@hotmail.com>