working on cfg generation
added swig cffi generation for runtime