fixed missing return statement
refactored cli implementation to create a separate Tagger class