updates

Fixed file and folder transfers.
Fixed system tray icon to display on startup
Did some code cleanup and refactoring.