Added process chain creation. Noted a bug in executor.
Finished the first testing version.