exportStudy function

Export a study