added template and usage documentation