Improve TProject ad TProjectFile; fix TTextTools