Clean up classifier creation
Add JSON IO streams for classification.