TCL file was not correctly parsed.

Due to a warning check TCL file was not parsed correctly
[] => \[\]
Separated irun from template

No template was written out if --no-irun option was used. By separating
the two it can be done
Tabbed formating for template
More debug messages. env is handled with centrally
Help head and tails is now displayed