cleaned up parameter types and added remove_*
added remove functions to C API