Issue#27: C interface implementation

following issue #27 
See <http://stackoverflow.com/a/16425373/634940> for additional notes on converting std::string (and vector) to C API.