Early on I was hiting a wierd bug with too many nested tables braking the pages that used the template, but this version seems to be working ok now.