#20: Fixed bugs in _match_elements().
#20: Added docstring to _locate_element().
#20: Added docstring to _process_config_item().
#20: Added docstring to read_config().
#20, #11: Added unittests of test_match_elements_multiple_matches().
#20: Fixed bugs in _match_elements() found during testing.