fixed some of the kernel launch offsets and accuracy in fortran