[mod] move everything related to the handling of the document into the corresponding function
[mod] move everything related to the handling of the document into the corresponding function

Psycojoker/dierentheater,Psycojoker/dierentheater,Psycojoker/dierentheater