Merge pull request #1 from adeguet1/master

Initial working version
Removed warnings and got the example to run correctly
Fixed error caused by compiling in release mode
Merge pull request #1 from pwilken3/master

Update from original