Adding swrite project to send serial messages via command line.

Modified serial.c to allow initialization without callback function