anchor.diff:  create_entry(timer, Value) when is_integer(Value) ->
       {timer, Value};
   
  -create_entry(database, []) ->
  +create_entry(database, undefined) ->
       {database, []};
   create_entry(database, Value) ->
       {database, Value};
   
  -create_entry(description, []) ->
  +create_entry(description, undefined) ->
       {description, "Please, add the description here"};   
   create_entry(description, Value) ->
       {description, Value}.    
  
positive.code: create_entry(icon, Value) ->
      {icon, Value};
  
  create_entry(ets, []) ->
      create_entry(ets, false);
  create_entry(ets, true) ->
      {ets, true};
  create_entry(ets, false) ->
      {ets, false};
  
  create_entry(activ, []) ->
      create_entry(activ, false);
  create_entry(activ, false) ->
      {activ, false};
  create_entry(activ, true) ->
      {activ, false};
  
  create_entry(timer, []) ->
      {timer, 0};
  create_entry(timer, 0) ->
      {timer, 0};
  
negative.code: %% --------------------------------------------------------------------
  -export([create_thing/2]).
  
  create_thing(Name, Config) ->
      Existing_config = get_config(),
      Thing_config = case is_entry(Name,  Existing_config) of 
          true -> lager:error("Entry with name : ~p already exists!", [config:get_value(thing, Existing_config)]),
                  [];
          false -> create_entries(Name, Config)
      end,
      {thing, Name, Thing_config}.
      
  create_entries(Name, Config) ->
      [create_entry(Key, config:get_value(Key, Config)) || Key <- [type, ets, icon, id,driver, activ, timer, database, description]].
      
  get_config() ->
      {Node, Config} = node_config:get_things_config(),
      Config.
  
  %% --------------------------------------------------------------------
  %%% Internal functions
  %% --------------------------------------------------------------------
  is_entry(Name, Config) ->
      lists:keymember(Name, 2, Config).     
  
  create_entry(type, sensor) ->
      {type, sensor};    
  
  create_entry(type, actor) ->
      {type, actor};
  create_entry(type, sensor) ->
      {type, sensor};    
      
  create_entry(id, undefined) ->
      create_entry(id, "default");
  create_entry(id, Value) ->
      {id, Value};
  