Added all the instance methods to make using the api look much more like
the python api