added C-Api and initial unity binding