updated gui to accept parameters from terminal