Basic functionality now works

Will continue with error handling, some more functionality and a bit
more work on the GUI