Adding XRF communication via library

Untested and no idea if it compiles. Needs a separate library to run