Updated Masterboard code for new masterboard

Includes master and slave board code