added quickstart and fixed template related bug