More functionality

Added a couple more features. Wont throw errors when there is no file
selected now