Make file an instance member. Add exit operation to tray icon.
Cleanup usage of file and collection stuff.