added copyright, style changes