fixing bugs
adding support for swig (not precompiled)