fix/receiver add string end to the printed message, remove unused code