JQ: Added feature to save pulse to file pulses.root in current working directory