added heterozygosity method, fixed typo in docstring