Improved docs.
Added simple test.