changed some int/unsigned to Xuint32
swap fg colour for bg colour
final code-review touch-ups