Feature/docs

This add some documentation draft and also adds more check in the network layer.