Derivative portal statistics script.

I have testing of the function in the package. These inline example inputs could probably come out. I'll pull them for now.