Config edits

- Change std::copy to std::insert where applicable.
- Change config assignment operator to copy-and-swap
- Clean up some code for readability.