read_plan function

Read plan from YAML