template errors updated and bug fixed - exceptions still need doing
template errors updated for exceptions
fixed unreachable code error for exception as final line of simple script
updated docs for recent changes
better uninitialized variable errors
warnings now appear in template file output