Kevin added functions to matR-apps.R

Hey Dan,

I added several functions to a matR-apps.R file.
I'll need some help documenting them.

Cheers
Kevin