Added directory argument for compareXS function in SLBW