added rewriteUrl() and fetchExternal
updated example and readme because of rewriteUrl()