Add design document

Thanks to Sam for writing up the design doc