working wrapper, cleanups of C code to use parameters instead of global constants still needed
update gitignore