Modified protobuf generate function logic and cmake test function that uses that function; Added example to test protobuf generated serialized and deserialized structure per the example in Google C++ documentation.