Input/Output and minor gui changes