added initial scripts and code for running external moses process