Print DCM.
Update test script for DCM.
Declare print functions in header.
Include output DCM in function arguments again.
Put more things in try blocks.