Added script to generate document