Added removing unused files in the inbox. Changed file handling in iOS.