Added the ability to pass options to the learner, which fixes #2