undpu Sanity Checking on Input File

Make sure that the input file has a .dpu suffix, and be more rigourous about checking the header.