Removed useless commented code

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>
Join array with a newline character,
Renamed removeEcho to echoLines

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>