NXP-12359: add copyright header + cleanup thanks to Sonar