Added options to xpath visitor and generate the expression with .// by default
Fixed autoload option for factory file