improve code readability

Reformats code to appease the linter and adds a helper function for simple string formatting. Also adds a gitignore file and one backwards compatible change to default to port 80 when none is specified.