Moved StaffGroupElement to its own file; added some basic comments.