Added DataSerializer class

Still WIP.