Don't bother, it's awful.
I'd suggest using opencv or some other variety. We do eye tracking all day long and the s4 is as bad at it as it gets. I've seen it even guess the wrong way and usually it fails to notice when I'm looking up. A coworker sends it completely the opposite direction.