17: Added unit tests for configuration, and did some refactoring in the process.
Merge pull request #28 from chrissalij/17

17: Added unit tests for configuration, and did some refactoring in the ...