Fixed some basic functions

Now will correctly delete files after processing.
Fixed typo in dropbox upload filename.