Update transport module

* Fix documentation bug.
* Add debug output.
* Mask password if it's in command.