Added working version of serialization library