added R functions for genotype manipulation and updated functions for interacting with genotype databases