Cleaned up Sum and Attribute distance, and added proper label comments