Heartbeat is now working between two devices (maybe even more, not tested yet). Crappy ID handeling is little bit fixed. Mistake in line 57 fixed (> changed to <) Cleared testing id table.