Add kobuki's packet timeout algorithm. Minor format cleanups.