The examples on how to use the code can be found in the paper below. If the code is helpful for you, please cite this paper.
"On-the-Fly Data Assessment for High-Throughput X-ray Diffraction Measurements" authored by Fang Ren, Ronald Pandolfi, Douglas Van Campen, Alexander Hexemer, and Apurva Mehta, published in ACS Combinatorial Science (2017).