anchor.diff:      ok;
   terminate(_Reason, _State = #state{port=Port,
                                      err_log = Errlog,
  -                                   raw_log = Raw,
  -                                   outfile = Out}) ->
  +                                   raw_log = Raw}) ->
       % loop here until port is closed
       Port ! {self(), close},
       term(1, Port),
  -    file:close(Out),
       file:close(Raw),
       file:close(Errlog),
       ok.
  
positive.code:         true -> {noreply, State};
          _    ->
              data_store:add_data(Decoded),
              Formatted = data_util:format(Decoded),
              data_util:pretty_print(Out, Formatted),
              {noreply, State}
      end;
  handle_info({'EXIT', Port, Reason}, State = #state{port=Port}) ->
  
negative.code: -export([handle_call/3, handle_cast/2]).
  -export([code_change/3]).
  
  -record(state, {port, err_log, raw_log}).
  
  start_link() ->
      gen_server:start_link(?MODULE, [], []).
  