Basic Skeleton to router.c

Started on router.c
added checksum check
and some basic formatting
It may be better to handle this in a seperate file