Implement training classifier and refactor to load settings from file