Minor edits

Discovered error where ‘cd’ without arguments fails. Adding debug
statements to find when and why shell dies after executing once. Began
work on iterating through multiple jobs though parse only creates a
single job.