Cleanup document and remove copy-pasted text