simplify nametrans, generalize examples and README