AIS-13 implemented basic serial out

plus some cleanup in SPI lib