New function addRemoteOrigin
a bit cleaning in namespaces