documented all statements; consistently used uppercase variable names for sets