fix span-host
Add encoding module
Add comments