Added librig.
Added a short example program.