updated `predict` function & added a man page

I also changed the style of my code to match your use of `<-`.