c++ add and reorganize

Added c++ code sample and reorganized everything.  I accidentally broke
Besov cleaning it, will put backup copy in tomorrow.