Added some comments and copyrights