short read/write stuff and some other things i came across

Hi Ronnie,

here is the stuff i put together in the last hours. the real issue that caused my trouble seems to be 8988d99. however, since the RFC allows for short read/writes I would add the logic to handle it.

Peter