parallel I/O code and screen output cleaned up