Exposed the C++ prediction code and fixed mean prediction. SDs are still broken.