fixed board init and added basic write to xml