added setting of port if no PORT env variable is set, needed to work on Heroku