Added Attendance class

Also other minor tweaks.