Refactor fullname, first name and last name generation. Fixes #240