convert to c no rice dependency
working version
plugin converted to c
Merge branch 'c_version'