Allow port to be defined in the settings
Improve formatting of index