added defaultState to docs