Mostly doc, rewritten module Xs_handle

PIease review and merge those changes !

CHANGES are:

* make doc now generate documentation.
* module Xs_handle rewritten with a new interface (functional style).