add comments function and extendable templates