Add more options for custom file name generation

Add new options for custom name generation: basename and baserootname