Added licence information in examples Main
Handle gres in SLURM jobservice.
Add constraints support to SLURM environment. Examples provided.