templating

templating document up....nearly done.