Added a copyright and change some minor things