Ability to set custom port number. Closes #1. Minor improvements.