Getting and saving all frames in text file.
 * saving data properly with buffer and closing at the end safely
 * Also displaying x-axis in miliseconds,seconds and minutes
 * displaying one every 20 frames