Options for number of cores to use

Options added to set the number of cores to use for analysis. The number
of cores available is set as the maximum value and it cannot be
exceeded. The number of cores is retrieved from the OS.