Updated library and example, should work better. Still missing some message handing and threading is a bitch...