Add ReadonlyDocument error
Rename State module to Stateful
Add readonly flags to documents