extractlabels script now takes optional ec-codes

can now be provided with optional ec-codes list that will be used to
generate the target matrix