cleanup of IO chapter code and exercise stubs