templates, testing

added new frontend template generation method
added new functions for demonstration purposes