Added go bindings to all of the C code, effectively replacing the original go code.