added documentation and tests for tplFile variable