made recognizer, more modularized, eliminated output.txt, and image-dump