Fixed argument types in functions, make add std::string parameter as refernce types by adding '&'