cleanup of the code, removing dead core + adding local vars to save some space.
cleanup of the code, removing dead core + adding local vars to save some space.

arurke/contiki,arurke/contiki,arurke/contiki,bluerover/6lbr,bluerover/6lbr,arurke/contiki,arurke/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,bluerover/6lbr,MohamedSeliem/contiki,bluerover/6lbr,arurke/contiki,arurke/contiki,bluerover/6lbr,MohamedSeliem/contiki,bluerover/6lbr,bluerover/6lbr,MohamedSeliem/contiki