Explicit error code upon ramsurf fail
Refine interface of ramsurf

make it possible to retrieve the depth sampling from the ramsurf call.