Adds port to configuration.

Attempts to close #251.

I'm sorry for the whitespace changes :disappointed: