write_pulse_ascii function

Write an ASCII formatted pulse file.