changed structure and cleaned up
Sorting works
use kain in the later iterations
no_compute keyword works