Added example programs to CMakeLists file
Fix null ptr in example
Check for null when serial_fmt is invalid / missing ','
Test for null pointers when retrieving values from parameters