finished writing functions for nrf8001. debug time