Code optimization for ulogoutput. Fix license header in all sources