Added pause/resume feature

Now you can pause/resume recording to the file