added option for custom classes on generated labels