Added write dep options

also started write grd options, but need to test dep first