added debugging output to show command that will be executed
fixed issue with not always detecting when the host field is empty in the GUI
Added more comments and re-ordered GUI stuff to match actual layout