DAMPE: A gamma and cosmic ray observatory in space