reverse namespace function. add namespace example in readme