Restore license header, reformat code [ci skip]