tweeks
ring buffer test
fix compiler warnings
reformat