added master analysis script