Added detailed design doc.