cleaned up word handling a bit

I recently discovered that a bitwise AND will convert negative numbers into
their twos-complement form before ANDing, so the unsign_word function is
unnecessary.