Added file locks on current dataset file. Moved print statement on decorator to after the file has been written to.
Added function to delete current dataset file if it exists.