Added write method for driver object.
Writing driver to the api.