Remove debugging print
Make header endings optional