Added getExecutablePath to thBase.directory.
Added ability to get line numbers from xml files.
Fixed singleton implementation.