Added support for boolean xpath results
Changed the interface slightly