Implementation of array jobs

Implemented the comments to pull request #19.
`if not jobList` should do the same and is more elegant.