further refactoring and inclusion of utility functions to make code more readable and compact; now--the fundamental question to be answered: WHAT IS TIDY DATA.  TBD.