Fixed global comment list
Added logging of exceptions thrown by templates

(finally)