Compatible and complete call to SDO Write with buffer pointer and length
Various cleanup and fixes