add license and some design doc