Merge pull request #155 from clumens/transport-finish
Global variable & code style improvements to transport.c