Extract part Menu::createDocumentMenu to readDocumentFromInput method and implement appendDocumentMenu