add a simple command line tool for building templates, build index once data-layer is added