Added argument parsing and unit tests to Settings.