slight class reorganisation
more structure and UART sensor class