Made use of *Util::getResourcePath()* in the Text object
Removed unused use statements and fixed the code standard