Use of swig extensions

Fixes #10