implemented sorting for peaks. removed unused fields in model/Link