fixed templates for every task
(almost) correct handling of every task
useful comment; new version 0.40