Added basic input validation and an overview to echo.cpp.