Tests added.
Readme updated.