added generate_from_model.py

to generate documents from a learned model

TODO integrate this into documents.py