moved import and source statments to top of code - will fail early, rather than later
I got behind, this is just merging changes in the readme.md and .r file.
Merge branch 'master' of https://github.com/sarahsupp/extreme_limits
made a few stylistic changes to improve readability. Removed extra semicolons, added spaces, etc. Ultimately, recommend increasing modularization of the code, so that the main function is << 200 lines