Fixed object responsible for output from a BufferedWriter to a PrintWriter. Moved termination character check before sending input