changed the way sending works to avoid superfluous returns on newlines, made naming scheme more consistant