added fluidtemplate example and bugfixes