First commit - everything works except final function

I'm sorry, I still can't figure out how to make the pull request work without requesting that you pull my data, etc.

Banging my head on the wall with this github stuff.