Implementation of array jobs

Implemented the comments to pull request #19.