changed some of the subprocess settings and removed some exploratory comments
It's really ugly but the basics work when invoked manually