Add license header and apply clang formatting to helper tool files