Added Contiki code with SOFA mac and an example application