Added serialization support and test

chosen file ext: pmd tested file name : test.pmd