Adding Chroma-Processing-MS header
Refactoring output and error handling