refactored file conversion code into its own class
merged in new UI code