Basic functions clean up

Edited the documentation and naming of things in my first functions.
The intercept vector is now added IN the function.  Output objects have
more informative names too.