use object/prototype model for labeler
add index for handling labelers
use index instead of labeler in packagejson
rewrite example to use new implementation