labeling fix

fixed the spacing on labels, added code such that if labels are too
close together, some are ignored