added fetchRef() function for resolving file given by ref; started moving towards using devtools for package dev