initial conversion to report templates
Make reports a bit more dynamic
updated recursion for children reports