added Ben's functions and a test line to the vignette