fixes and updates after the mbed unit tests have been carried out.