Is it interesting claim that you mustn't hard code configuration related settings in the source code? I read this rule in my first year programming text book in the community college.
I think colleges don't teach nuances of programming, they cover only basics. I can't explain you differences between reference and production code, this will take too much time. Use Google and you'll see why you were wrong in your assumption that PORT should be set via configurations. That declaration is the only right way in our case, unless you want to add spaghetti or (even worse) Indian style into the code to make it look bigger.
Please listen me. We gave you money. You have released very little and what you gave us is not even usable and secure. Only root user can run the software, which is useless. It is not secure design. You have fun and troll all day TPTB_need_war and altcoinuk while the investors have been waiting the launch of IOTA for 4 months. Please sort out the software.
Please, check main Iota thread that explains why we need root users to run the software. Don't worry, right before the production configurability will be extended. I won't comment on "4 months", it shows that you bought iotas for quick buck, such buyers are not welcome in our community. There might be special conditions (necessity to pay for college, etc.) that made you make such step, well, if it's a question of life and death you can always sell your iotas to someone else. The buyer may even cover 100% of your expenses.