setting up templating it will probably break
added first block of templating pretty neat
templator is sort of working however first results in nested queries aren't working
put the addBlock commands in the correct order so that the template displays correctly
cleaned up addBlocks, added in display results and errors function, removed all traces of any html code.