Reorganized code, using https://github.com/mcandre/genetics as an framework