more bug fixes regarding no newlines in the cross-section output file