updated the design doc. close to done