rewrote wrappers, fixed windows compilation issues, cleaned source, linked with RNACI