save and name file

TODO: fix randomly select content from different document