fixed a bunch of bugs and tests, karyotypes appear to run now