add copyright
update logs
correct deprecated methods in example