Fix a compile error I'm getting with Java 1.6
Add logging instead of NPE for unknown categorical variable values to fix #41.