added a little d3d to get it started

also added comments