added nrf code
created includes directory and moved some reusable code over