improve prediction code a bit.

More understandable process; more reasonable outputs when returning the full model