Simplify example c++ code
Add interface file creation and swig call