Added error checking in thesaurusimp
Converted test code to use metrics, and accumulate MSE
Modify pipeline to use metric