add docstring
make timing better - handle nesting properly for custom and template calls
use custom agent string
bump version