added new parameters for bulk, also automatically determine number of cores when compiling