add some debugging toStrings; fixed xpaths and rankData object creation;