Minor fixes.
Calculates phenotypes.