Added submit and submit2options
Added options arrays
Added support for array jobs