Skip duplicate students

and fixed major bug in adding attending students to courses