added option -r for reversed name order. fixes #8