Offsets, xclass for span

Added offsets and xclass to span tags