Updated "echo" code

Added ability to call cerr and clog, and cleaned code in echo.cpp to
make it more readable