Examples and include fixes

* Add first example file
* Add first example doc
* Add start of compiling docs
* Fix library so that user applications compile in gcc, not just g++