Added getAttributes() helper method. Updated documentation