Added NameGenerator.
Do not use xrange.
Merge pull request #1 from Dundee/dm-name-generator

Add NameGenerator.