Fixed ExpResidFxn.R so that I was making changes to the proper working directory. I added a re-usable example to ExpResidFxn. Made other minor changes.