Added some comments, added copyright notices on the files.