fix copyright / code style / TODO