The raw pulse codes come out a little messy for what we want to do with them so we need to clean them up.
1) Copy/Paste your raw codes into an empty Notepad (or similar) Doc and Label them 0 through 9.
2) The first pulse (large red circles in the Serial Monitor picture) is a sort of warm up for the IR LED so you want to delete it.
3) Then move on and delete any negative (-) signs you see in your pulses (small red circles in the Serial Monitor picture)
4) Go through your code and delete all the spaces leaving a coma (,) between each pulse.
Your finished pulses should look nice and clean like the string of pulses pictured in my code.