updating hom_ref and hom_var to work with alternate ploidies

fixes #228 

indentation