Added tests and docs to distribution.