Added config, logger and initial testing.
Added exceptions and tests.