fixed 0-byte issue in add_to_wbuf
changed output format to the version that tobi preferrs