Add a test_all_combinations flag to var_main to test all combinatorial possibilities in the search space of the given lags. Updated example 3 on the web app. Refactored formatting functions to a separate file.