Add templates
Add some documentation to parse states