Changed the way that templates are loded.
Working on adding more error checking for setSize and similar