clean up various things -Wall uncovered; switch buffers to unsigned char.  not sure why they weren't....