Adding the plotting function here

Not functional yet
Laying the ground to create the ray out of the pulse