Fixes

* Fixed a bug where BCI was done at in anonymous class constructor.
* Using c-strings instead of std::string inside native code(only put/load-field so far).
* file * instead of ofstream.