added some comments
Deleting unused file
handled exceptions
Making the threads run in the background instead of showing on UI
added more properties
used conditional operator
added listener to file name text field to activate Ok button
formatting