Refactored native portion to work with config.ini file to avoid having to rebuild
+Lots of cleanup in native