Documentation for state template