Organize logic, add dynamic name and reset

Logic changed from multiple if’s to switch statement and functions for
faster better approach. Name is now dynamically created or can be
custom. Changing some options reset others.