Change how state is written to file to remove POST errors for long states.
Updating for Task #1198 - fixing layout for documentation.