Found and fixed a bug with the parameters for the function:
Documentation on Wiki says params are: lat,lon,alt,p,r,h
Interncal C code was: lat,lon,alt,p, h, r
If you're trying to use this API and your results are garbage that's why.
Fixed in source, will appear in next public binaries.