Added the option of saving sensor data to file.

It works like a charm, howbeit there is a bug with the selection part.
Therefore it must be debugged so that we can select where to save our
data.