NXP-9924: cleanup, format and add missing license headers to source files