fixes

-fixed phone version
-fixed bug, which was occuring during creating new template
-add option to change root TeX directory
-and more fixes