added comment to openReference funciton