Changed inference

Added overloaded methods for inference on test data and changed the
inference input method in the example class