simplify nametrans, generalize examples and README
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  simplify nametrans, generalize examples and README