Merge pull request #7 from Sharparam/patch-1

Added serialization
Documentation update
Merge pull request #8 from Sharparam/patch-2

Added tests
Documentation update.