Fixes undefined index #19
#19 primary_port
showUrls option
Merge pull request #20 from morrislaptop/master

#19