Added the ability to clone into a template

I requested #103, but just went and implemented it myself.  I just did the cloning part, though.