Refactor read-config and remove unneeded code.

Comment out the tests for now.
Merge pull request #1 from ghoseb/master

Refactor.