resolved bug in templating_functions code(). ccda-explorer, ccda sample and sections tests running. errors mostly due to data issues. some refactoring done