Isolating the code for BCP from RPL. The code is not fully functional but it is a good starting point for further development