Added parameter $preferred_template to function templateFile()
add function createIFrame() for kitCommand
just in progress