fixed format, bind/unbind, writeData, added doc, example