Add templates for file generation, add coverage testing