Added args handling for the Channel and a counter for received packets. Code commented and cleaned up