Modify dpf4 script to source environment variables. Update documentation