update licenses
code cleanup and inspection