Removed self
Properly handle onsuccess/onerror in handleFileTransfer
Fixstyle fixes
Fix nits