Made I/O objects private fields to enhance readability. Cleaned up syntax in general and fixed readibility of exceptions.