added basic templating
improved search functions