Minor refactoring.  Changed string identity checks to string equality checks.
Extracted read configuration function.
Merge pull request #1 from drusk/master

Minor refactoring.