Added function to be called upon exit.

	modified:   PWM_Controller.c
Removed all  delays from Serial_Open() this is now a prper blocking function.
Serial_ClosePort now returns -1 to signify that the port is closed.
Added _XOPEN_SOURCE define to allow us to use signals and signal handlers.

Added code to open srial port and read out data.