add copyright, little improvements