added typesetting textaction

and a few other not important stuff which will be finished later