Add (state) function. Add snippets for State category. Issue #87.