Added SGS8x300 support, plus miscellaneous fixes.