Fixed the mod operation in ekf..main to use fmod instead of %.
Apparently that's the way to do it.