update receive

removed most debug comments.
added debug comments inside read loop