updating hom_ref and hom_var to work with alternate ploidies

fixes #228 

in vim I use 
```
:set et
:set ts=2
:set sw=2
:set cindent
```

and I never have to think about this. I'm sure Eclipse, Atom or whatever you use should have similar configuration options.