Fixed an error in saving

And a small typo in the readme.
Added some very basic tests