Added linebreak after opening bracket for easier reading of compiled code.
Refactored compiledTemplate to use addStatement all over. Removed unused variable.