Improve test coverage and documentation
Currently there're only unit tests for functions in scanner.rs and relay.rs and there isn't any integration test. It'd be great to improve this.
The code is well documented, but it can always be improved, specially when a part of code is not easy to understand on a first look.
Edited by juga