Restructured FlowNode so that all are held within Program and correctly id assignment and GUI issues surrounding it.