Simple dinamic creating documents with history