Added all but two functions. working on typemap for range structs