added templating and a basic template
tamplate adjustment