add snippets for : decode, encode, getPort, setPort. Correct snippets for: getHost and getRoot. Update Readme.md