Initial commit

2 real version
First one that really worked had misfolded process loops.