Multi-function labeling machine