added test cleanup
improved the documentation