Adding function to clean file, #13