Fix minor CMake bug; Add more stats to UART docs; Add explicit casts to varioius assignments