Cleanup functions and set up to test accuracy of model.