implementing some swig stuff
Merge pull request #2 from doowb/master

implementing some swig stuff