added a basic swig interface