def
added copyright, comments, and changed some relationships