added design doc (in docs/ for now)