change cin to std::getline where appropriate