moved value from pegr.R to value.R, added examples