fixed ticket #333: updated documentation for swig 2