fixed a typo in comparision in kernel (accidently compared with == instead of !=
removed debug stuff
added a description of my idea. I already get the right result... sometimes. seems to have something to do with DIMX*DIMY*DIMZ being a devisor or total sequence length or not