Add more exports and a working grdwrite function
Hand edit some more automatically generated functions