Added Seralization Code, untested.
updated Cmake