deleted redundant code; fixed run bug for output stream and line highlighting

cf4g09 and sa10g10