fixed braces bug in formatted string & renamed jobarray option -j to -a
minor remodeling & added job-array count