Moved DocumentState to the right package