Add a simple test program.
Fix and complete documentation.
Merge pull request #1 from bchretien/master

Complete documentation and add a test program