Added diversity functions.
Added separate file for polymorphism and divergence functions.
Substantial additions to portions of script dealing with polymorphism and divergence.