bug fix to rng header
switched example programs to unified header