moved some generic string functions out of the core class
make use of the path functions
write embedded resource files to directory rather than calling the script all the time
introduced new function that creates the dir of a touched file and cleaned up three old files