Change some types to be ints rather than strings, change segment vector to not be a pointer