fix scan_netstring to actually correctly return the length of the transported string add documentation