Clean up formatting, moved some code around
Add config value to set IP to bind to