Removed numpy arrays from most of the cases. Added a phenotype function.