Modified the runtime to work with multiple output ports
Modified the runtime to support calling functions, issues remain with input not being reset between calls