update to new ccall convention and fix README