updates to functions for handling genotypes; interface to PLINK