Exported the newReference function

Changed the newReference function from non-published to published.