1. Shrimp turns black after cooking, which is caused by the gradual deposition of melanin in shrimp. This is a normal physiological phenomenon, so you don't have to worry too much and you don't need special treatment.
2. Shrimp is rich in protein. Protein will denature and turn black after cooking, which is a normal oxidation reaction.