cleaned up the nrf51822 app for gateway