Changed some for loops to use lapply (faster).
Added parallelization of phenotype evaluation