update copyright info
improve code style