remove comments, verify headers