Added multiple mbed support and conform to style. Fixes issue #156