Implement signal quality according to protocol doc, prettify key generation.