Fixed various bug. Completed registration_workflow_spec