add docstring
prepare ability to convert template for Tex