Added a testsuite and more documentation.