Initial preferred label aggregation working / classes need to be moved out of main file