I will remove this code once I get the below code working.  For the time being, it is working correctly (with less functionality that I'd like -- It only copies, rathe than letting me format the content of the templates).