ported to mbed

Hi!
I ported your library to mbed. Might be useful for other people too:-)