fixed bugs with fomulas, added comments
Merge pull request #3 from zhitkovk/Text

fixed bugs with fomulas, added comments