Refactor _data_pred_dist so RAD can write entire result table
Refactor twiggy_setup for clarity
Rename twiggy_setup to more general misc
Change log_file back to more accurate log_path
min and max in Patch table should come from metadata
Whitespace cleanup
Major refactoring of main, support generic function-based analysis
Move doctoring inherit decorator to misc