Update sender.c

Added ability to calculate checksum