Fixed minor errors

* Forgot to initialize Transport
* Removed some debug code