Started work on nrf library. Needs to be tested