First commit of scripts for running theta