Pull request for reference file stuff

Hey Hadley,

Here the pull request you asked me to do.

cheers,
Paul