update copyright info
make code pedantic-compilant