Added config rule loading methods.
Fixed compile errors.