Revert "Use std::cin >> line instead of std::getline() in readBand()"

This reverts commit be6eb029afbbbb31d0331f2a4cebf08cdbea4014.
Some bug fixes