Separated several functions from the put label routine for modularity.
Separated several functions from the put label routine for modularity.

crcresearch/smartcontainers,Omegaice/smartcontainers,Omegaice/smartcontainers,dahuo2013/smartcontainers,crcresearch/smartcontainers,charlesvardeman/smartcontainers,crcresearch/smartcontainers,Omegaice/smartcontainers,dahuo2013/smartcontainers,dahuo2013/smartcontainers