More std::string& usage

replaces `const char*` with `std::string&` in many places.
fixes some indentation issues
improves the code in Textfiled a little bit.
Adds some missing `overrides`