* adding copyright header * fix fmt and a test
* adds prefer-const to eslint config and runs fixer * reverts unintended change