Soon to be released to CRAN, I promise a stable data format: https://r-prof.github.io/profile/reference/validate_profile.html. Might simplify #4.