Moved all code from attendance to student. Made all scope fields explicit for student/staff/sg
further attempts to students