First working version of karyotype retriever working as expected and almost entirely debugged