You can build a documentation for the gateway typing:
in the project root. You'll need Doxygen and Graphviz installed.