Add docs and doctests for module Xmath