fixed a few bugs and things.

I ran through an entire population (size 10) and they all ran well.
#5 issue